<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/*
** ThinkPHP 普通模式定义
*/

return array(
		// 配置文件
		'config' => array(
				CORE_PATH . 'conf/convention.php', 	// 系统惯例配置
				CONF_PATH . 'config' . CONF_EXT, 	// 应用公共配置
			),
		
		// 别名定义
		'alias' => array(
				'think\Log' 				=> THINK_PATH . 'Log.php',
				'think\log\driver\File' 	=> THINK_PATH . 'log/driver/File.php',
				'think\Exception' 			=> THINK_PATH . 'Exception.php',
				'think\Model' 				=> THINK_PATH . 'Model.php',
				'think\Db' 					=> THINK_PATH . 'Db.php',
				'think\Template' 			=> THINK_PATH . 'Template.php',
				'think\Cache' 				=> THINK_PATH . 'Cache.php',
				'think\cache\driver\File' 	=> THINK_PATH . 'cache/driver/File.php',
				'think\Storage' 			=> THINK_PATH . 'Storage.php',
			),
		
		// 函数和类文件
		'core' => array(
				CORE_PATH . 'commons/functions.php',
				COMMON_PATH . 'common/function.php',
				THINK_PATH . 'Hook.php',
				THINK_PATH . 'App.php',
				THINK_PATH . 'Dispatcher.php',
				//THINK_PATH . 'Log.php',
				THINK_PATH . 'Route.php',
				THINK_PATH . 'Controller.php',
				THINK_PATH . 'View.php',
				BEHAVIOR_PATH . 'BuildLiteBehavior.php',
				BEHAVIOR_PATH . 'ParseTemplateBehavior.php',
				BEHAVIOR_PATH . 'ContentReplaceBehavior.php',
			),
		
		// 行为扩展定义
		'tags' => array(
				'app_init' 		=> array(
						'behavior\BuildLiteBehavior', 		// 生成运行Lite文件
					),
				'app_begin' 	=> array(
						'behavior\ReadHtmlCacheBehavior', 	// 读取静态缓存
					),
				'app_end' 		=> array(
						'behavior\ShowPageTraceBehavior', 	// 页面Trace显示
					),
				'view_parse' 	=> array(
						'behavior\ParseTemplateBehavior', 	// 模板解析 支持PHP、内置模板引擎和第三方模板引擎
					),
				'template_filter' 	=> array(
						'behavior\ContentReplaceBehavior', 	// 模板输出替换
					),
				'view_filter' 		=> array(
						'behavior\WriteHtmlCacheBehavior', 	// 写入静态缓存
					),
		),
	);
	